﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DayInput.aspx.cs" Inherits="Moral_Teacher_ScoreInput_DayInput" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../../Common/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <div id="divMain" class="mainWarp" style="width: 100%; height: 99%;">
            <div class="pageBody" style="width: 100%; height: 99%;">
                <br/>
                <h2 style="margin-left:5px;"><asp:Label ID="lbTitle" runat="server" Text="本学期评价记录"></asp:Label></h2>
                <br/>
                <div style="margin-left:5px;">
                <asp:DropDownList ID="selWeek" runat="server" OnSelectedIndexChanged="selWeek_IndexChanged" AutoPostBack="true">
                </asp:DropDownList>
                </div>
                <br/>
                <asp:UpdatePanel ID="upResult" runat="server">
                    <ContentTemplate>
                        <asp:Table ID="tbResult" runat="server" CssClass="useList" Style="margin-left: 5px;">
                        </asp:Table>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="selWeek" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
        </div>
    </form>
</body>

<script type="text/javascript" src="../../Common/js/jquery.js"></script>
<script type="text/javascript" src="../../Common/js/common.js"></script>
<script type="text/javascript">
    function detailView() {
        var liList = parent.leftFrame.document.getElementById("detailLi");
        parent.leftFrame.removeActiveStyle();
        liList.style.display = "block";
        liList.className = "active";
    }
    
    function mover(i){
        //alert(1);
        var objTable = document.getElementById('<%=tbResult.ClientID %>');
        if(objTable == null || objTable.rows.length < 2)
            return;
            
        for(var n = 1; n < objTable.rows.length; n++){
            objTable.rows[n].cells[i+1].style.background = "#fffdcf";
        }
    }
    
    function mout(i){
        var objTable = document.getElementById('<%=tbResult.ClientID %>');
        if(objTable == null)
            return;
            
        for(var n = 1; n < objTable.rows.length; n++){
            objTable.rows[n].cells[i+1].style.background = "#ffffff";
        }
    }
    
</script>
</html>
